<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#main_big").slideToggle("slow");
});
</script>
</head>

<body style="background:#FFF">
<iframe name="get" style="display:none;"></iframe>
	<div id="main_big" style="display:none">导航管理列表</div>
    <div id="main_contents">
    <div id="main_description">描述：导航管理列表</div>
<script type="text/javascript">
$(document).ready(function(){
				$("#form1").slideDown("slow"); 		
				$("#form2").slideDown("slow"); 		   
        $(".main_table tr").mouseover(function(){
                $(this).addClass("over");}).mouseout(function(){
                $(this).removeClass("over");})
		$('.sort2 td').css({'background':'#c1c1c1'});
		$('.sort2 td').css({'text-indent':'0px'});
			$('.show_m').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Index&a=ajax_menu_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#c' + pid).html(json.show);
					$('#s' + pid).html(json.value);
					}
				});
			});
});
</script>
    <form id="form1" name="form1" method="post" target="get" action="?m=Index&a=menu_delete" style="display:none;">

    <div class="table_c">
<h1>顶部导航</h1>
    	<table border="0" cellspacing="1" class="main_table">
       		 <tr>
            	<th width="30" align="center">删</th>
                <th width="50">导航ID</th>
                <th>导航名称</th>
            	<th>英文名称</th>
            	<th>Url</th>
            	<th>描述</th>
            	<th>排序</th>
            	<th>是否显示</th>
                <th>编辑</th>
            </tr>
            
            <if condition="!empty($menu_top)">
            <volist name="menu_top" id="vo">
        	<tr>
            	<td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.menu_id}>"></td>
                <td><{$vo.menu_id}></td>
                <td><{$vo.title}></td>
            	<td><{$vo.e_title}></td>
                <td><{$vo.url}></td>
            	<td><{$vo.overview}></td>
            	<td><{$vo.sorting}></td>
            	<td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.menu_id}></span><span id="s<{$vo.menu_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.menu_id}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                <td><a href="?m=Index&a=menu_edit&menuid=<{$vo.menu_id}>">[详细]</a></td>
            </tr>
           	 <volist name="menu2" id="co">
                    <if condition="$vo['menu_id'] eq $co['meid']">
                        <tr class="sort2">
                            <td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$co.menu_id}>"></td>
                            <td><{$co.menu_id}></td>
                            <td><{$co.title}></td>
                            <td><{$co.e_title}></td>
                            <td><{$co.url}></td>
                            <td><{$co.overview}></td>
                            <td><{$co.sorting}></td>
                            <td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$co.menu_id}></span><span id="s<{$co.menu_id}>" class="show_me" style="display:none;"><{$co.show_m}></span>
                <span id="c<{$co.menu_id}>" class="show"><if condition="$co.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                            <td><a href="?m=Index&a=menu_edit&menuid=<{$co.menu_id}>">[详细]</a></td>
                        </tr>
                    </if>
                </volist>
            </volist>
            <else />
            <tr>
            	<td colspan="9">当前没有任何记录</td>
             </tr>
             </if>
        </table>
            	  <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />

                  </div>
                  </form>
        
<form id="form2" name="form2" method="post" target="get" action="?m=Index&a=menu_delete" style="display:none;margin:10px 0px;">
    <div class="table_c">
<h1>底部导航</h1>
    	<table border="0" cellspacing="1" class="main_table">
       		 <tr>
            	<th width="30" align="center">删</th>
                <th width="50">导航ID</th>
                <th>导航名称</th>
            	<th>英文名称</th>
            	<th>Url</th>
            	<th>描述</th>
            	<th>排序</th>
            	<th>是否显示</th>
                <th>编辑</th>
            </tr>
            
            <if condition="!empty($menu_bottom)">
            <volist name="menu_bottom" id="vo">
        	<tr>
            	<td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.menu_id}>"></td>
                <td><{$vo.menu_id}></td>
                <td><{$vo.title}></td>
            	<td><{$vo.e_title}></td>
                <td><{$vo.url}></td>
            	<td><{$vo.overview}></td>
            	<td><{$vo.sorting}></td>
            	<td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.menu_id}></span><span id="s<{$vo.menu_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.menu_id}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                <td><a href="?m=Index&a=menu_edit&menuid=<{$vo.menu_id}>">[详细]</a></td>
            </tr>
            </volist>
            <else />
            <tr>
            	<td colspan="9">当前没有任何记录</td>
             </tr>
             </if>
        </table>
            	  <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />
                  </div>
                  </form>
	</div>


</body>
</html>